<template>
	<view class="">
		<view class="flex-col items-center ">
			<view class="top-con">
				<view class="">
					<image src="/static/img/success.png" mode="" class="image-1"></image>
				</view>
			</view>
			<view class="flex-col">
				<view class="pay-t">{{title}}</view>
				<view class="tips">
					{{text}}
				</view>
			</view>
			<view class="submit" hover-class="hover-opacity" @click="onClick">确定</view>
		</view>
	</view>
</template>

<script>
	export default { 
		data(){
			return{
				type:'',
				title:'提交成功',
				text:'请等待工作人员处理'
			}
		},
		onLoad(e) {
			if(e.type && e.type == '2'){
				this.title = '续费成功'
				this.text = '请等待管理员审核'
				this.setNavTitle('支付结果')
			}
		},
		methods:{
			onClick(){
				uni.switchTab({
					url:'/pages/tabs/home'
				})
			},
			statechange(e){
				console.log(e)
			},
			error(e){
				console.log(e,'error')
			}
		}
	}
</script>
<style>
	page{
		background-color: #fff;
	}
</style>
<style scoped lang="scss">
.top-con {
	padding: 220rpx 0 80rpx 0;
}
.image-1 {
	width: 160rpx;
	height: 160rpx;
}
.pay-t {
	font-size: 32rpx;
	font-weight: 500;
	color: #333333;
	text-align: center;
}
.tips{
	font-size: 28rpx;
	font-family: PingFang SC;
	font-weight: bold;
	color: #666666;
	margin-top: 10rpx;
}
.submit {
	width: 433rpx;
	height: 110rpx;
	line-height: 110rpx;
	text-align: center;
	background: $uni-color-bg;
	border-radius: 55rpx;
	font-size: 32rpx;
	font-weight: 500;
	color: #ffffff;
	margin-top: 100rpx;
}
</style>
